package cn.dnui_zll731.dnuifood_731zlll.iface;


import cn.dnui_zll731.dnuifood_731zlll.listener.RetrofitListener;

public interface UserIface {
    void login(String username,
               String userpass,
               RetrofitListener listener);
    void register(String username,
                  String userpass,
                  String mobilenum,
                  String address,
                  String comment,
                  RetrofitListener listener);
    void userCollectFood(String user_id,
                         String food_id,
                         RetrofitListener listener);

    void getUserById(String user_id,
                     RetrofitListener listener);
    void insertOrder(String user_id,
                     String food_id,
                     String num,
                     String sum,
                     String suggesttime,
                     String address,
                     RetrofitListener listener);
    void getAllUserCollection(String user_id,
                              String flag,
                              RetrofitListener listener);
    void updateUserById(String user_id,
                        String username,
                        String userpass,
                        String mobilenum,
                        String address,
                        RetrofitListener listener);
    void getAllCommentsByUser(String user_id,
                              RetrofitListener listener);
    void getAllOrdersByUser(String user_id,
                            RetrofitListener listener);

    void updateComment(String item_id,
                       String content,
                       RetrofitListener listener);

    void deleteComment(String item_id,
                       RetrofitListener listener);

    void insertComment(String item_id,
                       String content,
                       RetrofitListener listener);


}

